<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SMTC Modem API: smtc_modem_test_api.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SMTC Modem API
   </div>
   <div id="projectbrief">Generic Modem API description</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">smtc_modem_test_api.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>soft modem test API description  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;stdint.h&gt;</code><br />
<code>#include &lt;stdbool.h&gt;</code><br />
<code>#include &quot;ral.h&quot;</code><br />
<code>#include &quot;<a class="el" href="smtc__modem__api_8h_source.html">smtc_modem_api.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for smtc_modem_test_api.h:</div>
<div class="dyncontent">
<div class="center"><img src="smtc__modem__test__api_8h__incl.png" border="0" usemap="#asmtc__modem__test__api_8h" alt=""/></div>
<map name="asmtc__modem__test__api_8h" id="asmtc__modem__test__api_8h">
<area shape="rect" title="soft modem test API description" alt="" coords="70,5,253,32"/>
<area shape="rect" title=" " alt="" coords="10,155,81,181"/>
<area shape="rect" title=" " alt="" coords="111,155,194,181"/>
<area shape="rect" title=" " alt="" coords="199,80,250,107"/>
<area shape="rect" href="smtc__modem__api_8h.html" title="Generic Modem API description." alt="" coords="24,80,174,107"/>
</map>
</div>
</div>
<p><a href="smtc__modem__test__api_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a0904e049e2f6a4193846c8374d0526b1"><td class="memItemLeft" align="right" valign="top"><a id="a0904e049e2f6a4193846c8374d0526b1"></a>
typedef enum <a class="el" href="smtc__modem__test__api_8h.html#aadec391c5d4a85c2e74cea5583d1e9f4">smtc_modem_test_sf_e</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__test__api_8h.html#a0904e049e2f6a4193846c8374d0526b1">smtc_modem_test_sf_t</a></td></tr>
<tr class="memdesc:a0904e049e2f6a4193846c8374d0526b1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test mode Spreading Factor type. <br /></td></tr>
<tr class="separator:a0904e049e2f6a4193846c8374d0526b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07fe2a8ce0f3a41efc85724db499ea92"><td class="memItemLeft" align="right" valign="top"><a id="a07fe2a8ce0f3a41efc85724db499ea92"></a>
typedef enum <a class="el" href="smtc__modem__test__api_8h.html#a63640687516a10065784f866533aaffe">smtc_modem_test_bw_e</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__test__api_8h.html#a07fe2a8ce0f3a41efc85724db499ea92">smtc_modem_test_bw_t</a></td></tr>
<tr class="memdesc:a07fe2a8ce0f3a41efc85724db499ea92"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test mode Bandwith type. <br /></td></tr>
<tr class="separator:a07fe2a8ce0f3a41efc85724db499ea92"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa230d9073b152c55859320ba84ac1ee"><td class="memItemLeft" align="right" valign="top"><a id="aaa230d9073b152c55859320ba84ac1ee"></a>
typedef enum <a class="el" href="smtc__modem__test__api_8h.html#a9765f9f6409d325af061eb64b08962f4">smtc_modem_test_bw_m_e</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__test__api_8h.html#aaa230d9073b152c55859320ba84ac1ee">smtc_modem_test_bw_m_t</a></td></tr>
<tr class="memdesc:aaa230d9073b152c55859320ba84ac1ee"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test mode Bandwith type (high bandwidth) <br /></td></tr>
<tr class="separator:aaa230d9073b152c55859320ba84ac1ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7bcf4639ccbe1985115e5ab739ac14c8"><td class="memItemLeft" align="right" valign="top"><a id="a7bcf4639ccbe1985115e5ab739ac14c8"></a>
typedef enum <a class="el" href="smtc__modem__test__api_8h.html#a33bb498a5566193ca59d8d4885e32c44">smtc_modem_test_cr_e</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__test__api_8h.html#a7bcf4639ccbe1985115e5ab739ac14c8">smtc_modem_test_cr_t</a></td></tr>
<tr class="memdesc:a7bcf4639ccbe1985115e5ab739ac14c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test mode Coding Rate type. <br /></td></tr>
<tr class="separator:a7bcf4639ccbe1985115e5ab739ac14c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:aadec391c5d4a85c2e74cea5583d1e9f4"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__test__api_8h.html#aadec391c5d4a85c2e74cea5583d1e9f4">smtc_modem_test_sf_e</a> { <br />
&#160;&#160;<a class="el" href="smtc__modem__test__api_8h.html#aadec391c5d4a85c2e74cea5583d1e9f4a848c2b64b13898617577a6018fa1bc95">SMTC_MODEM_TEST_FSK</a> = 0
, <a class="el" href="smtc__modem__test__api_8h.html#aadec391c5d4a85c2e74cea5583d1e9f4a7bc2863c73ba71f8abfd6b278fcf11f2">SMTC_MODEM_TEST_LORA_SF5</a>
, <a class="el" href="smtc__modem__test__api_8h.html#aadec391c5d4a85c2e74cea5583d1e9f4adb12ed9076f9abdb86db2717749a01ed">SMTC_MODEM_TEST_LORA_SF6</a>
, <a class="el" href="smtc__modem__test__api_8h.html#aadec391c5d4a85c2e74cea5583d1e9f4a5ab9dc39c3d7890a2986e28b000838a4">SMTC_MODEM_TEST_LORA_SF7</a>
, <br />
&#160;&#160;<a class="el" href="smtc__modem__test__api_8h.html#aadec391c5d4a85c2e74cea5583d1e9f4a79a04c9a91c0efadf4cd56e28caf66e6">SMTC_MODEM_TEST_LORA_SF8</a>
, <a class="el" href="smtc__modem__test__api_8h.html#aadec391c5d4a85c2e74cea5583d1e9f4ad8ec6d8a996687f13601a6b41ee18cc5">SMTC_MODEM_TEST_LORA_SF9</a>
, <a class="el" href="smtc__modem__test__api_8h.html#aadec391c5d4a85c2e74cea5583d1e9f4a7ffd13e9b708c04f7747ab85d359a848">SMTC_MODEM_TEST_LORA_SF10</a>
, <a class="el" href="smtc__modem__test__api_8h.html#aadec391c5d4a85c2e74cea5583d1e9f4a0f38aa018e2edfb8ce6269043347bb9b">SMTC_MODEM_TEST_LORA_SF11</a>
, <br />
&#160;&#160;<a class="el" href="smtc__modem__test__api_8h.html#aadec391c5d4a85c2e74cea5583d1e9f4a0c26e3f279016ea6b60175b55d8e43c5">SMTC_MODEM_TEST_LORA_SF12</a>
, <a class="el" href="smtc__modem__test__api_8h.html#aadec391c5d4a85c2e74cea5583d1e9f4a670d26981935ac23aae8cc9bf620d8cd">SMTC_MODEM_TEST_LORA_SF_COUNT</a>
<br />
 }</td></tr>
<tr class="memdesc:aadec391c5d4a85c2e74cea5583d1e9f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test mode Spreading Factor type.  <a href="smtc__modem__test__api_8h.html#aadec391c5d4a85c2e74cea5583d1e9f4">More...</a><br /></td></tr>
<tr class="separator:aadec391c5d4a85c2e74cea5583d1e9f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63640687516a10065784f866533aaffe"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__test__api_8h.html#a63640687516a10065784f866533aaffe">smtc_modem_test_bw_e</a> { <br />
&#160;&#160;<a class="el" href="smtc__modem__test__api_8h.html#a63640687516a10065784f866533aaffeaaa38b1e867e6d9a2856b14e3fa565e38">SMTC_MODEM_TEST_BW_125_KHZ</a>
, <a class="el" href="smtc__modem__test__api_8h.html#a63640687516a10065784f866533aaffeaff3d9e9d9ae8d5c8407e9497db014b0f">SMTC_MODEM_TEST_BW_250_KHZ</a>
, <a class="el" href="smtc__modem__test__api_8h.html#a63640687516a10065784f866533aaffea7685c055bdde68f741e0aa14f2b7da22">SMTC_MODEM_TEST_BW_500_KHZ</a>
, <a class="el" href="smtc__modem__test__api_8h.html#a63640687516a10065784f866533aaffeabd7d2baba344bd579800b1cfbed7d284">SMTC_MODEM_TEST_BW_200_KHZ</a>
, <br />
&#160;&#160;<a class="el" href="smtc__modem__test__api_8h.html#a63640687516a10065784f866533aaffeac16ccd9991c395e1d987905ef14f8f95">SMTC_MODEM_TEST_BW_400_KHZ</a>
, <a class="el" href="smtc__modem__test__api_8h.html#a63640687516a10065784f866533aaffeaca524147520fe0d196077553eb67aade">SMTC_MODEM_TEST_BW_800_KHZ</a>
, <a class="el" href="smtc__modem__test__api_8h.html#a63640687516a10065784f866533aaffea22bf0fd6dd37d86811d204514880dc63">SMTC_MODEM_TEST_BW_1600_KHZ</a>
, <a class="el" href="smtc__modem__test__api_8h.html#a63640687516a10065784f866533aaffea3b1cafa9b2b332f808bf7b9afb9df983">SMTC_MODEM_TEST_BW_COUNT</a>
<br />
 }</td></tr>
<tr class="memdesc:a63640687516a10065784f866533aaffe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test mode Bandwith type.  <a href="smtc__modem__test__api_8h.html#a63640687516a10065784f866533aaffe">More...</a><br /></td></tr>
<tr class="separator:a63640687516a10065784f866533aaffe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9765f9f6409d325af061eb64b08962f4"><td class="memItemLeft" align="right" valign="top"><a id="a9765f9f6409d325af061eb64b08962f4"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__test__api_8h.html#a9765f9f6409d325af061eb64b08962f4">smtc_modem_test_bw_m_e</a> { <b>SMTC_MODEM_TEST_BW_12M</b> = 15
, <b>SMTC_MODEM_TEST_BW_18M</b>
, <b>SMTC_MODEM_TEST_BW_24M</b>
 }</td></tr>
<tr class="memdesc:a9765f9f6409d325af061eb64b08962f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test mode Bandwith type (high bandwidth) <br /></td></tr>
<tr class="separator:a9765f9f6409d325af061eb64b08962f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33bb498a5566193ca59d8d4885e32c44"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__test__api_8h.html#a33bb498a5566193ca59d8d4885e32c44">smtc_modem_test_cr_e</a> { <br />
&#160;&#160;<a class="el" href="smtc__modem__test__api_8h.html#a33bb498a5566193ca59d8d4885e32c44a3a2b0104d2c562352f61fb1762aea4ff">SMTC_MODEM_TEST_CR_4_5</a> = 0
, <a class="el" href="smtc__modem__test__api_8h.html#a33bb498a5566193ca59d8d4885e32c44a3c6604fa6b3f96760d5328cc38e1cc3a">SMTC_MODEM_TEST_CR_4_6</a>
, <a class="el" href="smtc__modem__test__api_8h.html#a33bb498a5566193ca59d8d4885e32c44aed7b25d2859541a642d6b396979e3fe9">SMTC_MODEM_TEST_CR_4_7</a>
, <a class="el" href="smtc__modem__test__api_8h.html#a33bb498a5566193ca59d8d4885e32c44a1265b30c843944ed11a534b96272932c">SMTC_MODEM_TEST_CR_4_8</a>
, <br />
&#160;&#160;<a class="el" href="smtc__modem__test__api_8h.html#a33bb498a5566193ca59d8d4885e32c44a0e9aa9a43941cd759a771a588b094d40">SMTC_MODEM_TEST_CR_LI_4_5</a>
, <a class="el" href="smtc__modem__test__api_8h.html#a33bb498a5566193ca59d8d4885e32c44ab406b78fe61964e4de604633c065f938">SMTC_MODEM_TEST_CR_LI_4_6</a>
, <a class="el" href="smtc__modem__test__api_8h.html#a33bb498a5566193ca59d8d4885e32c44a9a65b53b981532338fa6e46dbf52a5d0">SMTC_MODEM_TEST_CR_LI_4_8</a>
, <a class="el" href="smtc__modem__test__api_8h.html#a33bb498a5566193ca59d8d4885e32c44ad76525e9f577ae563f9d5262464992b5">SMTC_MODEM_TEST_CR_COUNT</a>
<br />
 }</td></tr>
<tr class="memdesc:a33bb498a5566193ca59d8d4885e32c44"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test mode Coding Rate type.  <a href="smtc__modem__test__api_8h.html#a33bb498a5566193ca59d8d4885e32c44">More...</a><br /></td></tr>
<tr class="separator:a33bb498a5566193ca59d8d4885e32c44"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ae4ed95342283486ae78119ec2f2b8625"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__test__api_8h.html#ae4ed95342283486ae78119ec2f2b8625">smtc_modem_test_start</a> (void)</td></tr>
<tr class="memdesc:ae4ed95342283486ae78119ec2f2b8625"><td class="mdescLeft">&#160;</td><td class="mdescRight">Put modem in test mode.  <a href="smtc__modem__test__api_8h.html#ae4ed95342283486ae78119ec2f2b8625">More...</a><br /></td></tr>
<tr class="separator:ae4ed95342283486ae78119ec2f2b8625"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb9e8571cfc7ce7569941ef0ba242127"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__test__api_8h.html#abb9e8571cfc7ce7569941ef0ba242127">smtc_modem_test_stop</a> (void)</td></tr>
<tr class="memdesc:abb9e8571cfc7ce7569941ef0ba242127"><td class="mdescLeft">&#160;</td><td class="mdescRight">Exit modem test mode.  <a href="smtc__modem__test__api_8h.html#abb9e8571cfc7ce7569941ef0ba242127">More...</a><br /></td></tr>
<tr class="separator:abb9e8571cfc7ce7569941ef0ba242127"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34f5ca7f29b38519cdbcf0893349ceda"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__test__api_8h.html#a34f5ca7f29b38519cdbcf0893349ceda">smtc_modem_test_nop</a> (void)</td></tr>
<tr class="memdesc:a34f5ca7f29b38519cdbcf0893349ceda"><td class="mdescLeft">&#160;</td><td class="mdescRight">Perform no operation. This function can be used to terminate an ongoing continuous operation.  <a href="smtc__modem__test__api_8h.html#a34f5ca7f29b38519cdbcf0893349ceda">More...</a><br /></td></tr>
<tr class="separator:a34f5ca7f29b38519cdbcf0893349ceda"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2427b7dfe039254cd332fb58bd9fc1c5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__test__api_8h.html#a2427b7dfe039254cd332fb58bd9fc1c5">smtc_modem_test_tx_hop</a> (void)</td></tr>
<tr class="separator:a2427b7dfe039254cd332fb58bd9fc1c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac697e3107ac55c3314fcac3f019a0ea0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__test__api_8h.html#ac697e3107ac55c3314fcac3f019a0ea0">smtc_modem_test_tx</a> (uint8_t *payload, uint8_t payload_length, uint32_t frequency_hz, int8_t tx_power_dbm, <a class="el" href="smtc__modem__test__api_8h.html#a0904e049e2f6a4193846c8374d0526b1">smtc_modem_test_sf_t</a> sf, <a class="el" href="smtc__modem__test__api_8h.html#a07fe2a8ce0f3a41efc85724db499ea92">smtc_modem_test_bw_t</a> bw, <a class="el" href="smtc__modem__test__api_8h.html#a7bcf4639ccbe1985115e5ab739ac14c8">smtc_modem_test_cr_t</a> cr, uint32_t preamble_size, bool continuous_tx)</td></tr>
<tr class="memdesc:ac697e3107ac55c3314fcac3f019a0ea0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test mode TX single or continue.  <a href="smtc__modem__test__api_8h.html#ac697e3107ac55c3314fcac3f019a0ea0">More...</a><br /></td></tr>
<tr class="separator:ac697e3107ac55c3314fcac3f019a0ea0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae56be76203131e5ea05e7836375248d4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__test__api_8h.html#ae56be76203131e5ea05e7836375248d4">smtc_modem_test_tx_cw</a> (uint32_t frequency_hz, int8_t tx_power_dbm)</td></tr>
<tr class="memdesc:ae56be76203131e5ea05e7836375248d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test mode transmit a continuous wave.  <a href="smtc__modem__test__api_8h.html#ae56be76203131e5ea05e7836375248d4">More...</a><br /></td></tr>
<tr class="separator:ae56be76203131e5ea05e7836375248d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f896f7d13346465a8a837bfa9e42d92"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__test__api_8h.html#a2f896f7d13346465a8a837bfa9e42d92">smtc_modem_test_rx_continuous</a> (uint32_t frequency_hz, <a class="el" href="smtc__modem__test__api_8h.html#a0904e049e2f6a4193846c8374d0526b1">smtc_modem_test_sf_t</a> sf, <a class="el" href="smtc__modem__test__api_8h.html#a07fe2a8ce0f3a41efc85724db499ea92">smtc_modem_test_bw_t</a> bw, <a class="el" href="smtc__modem__test__api_8h.html#a7bcf4639ccbe1985115e5ab739ac14c8">smtc_modem_test_cr_t</a> cr)</td></tr>
<tr class="memdesc:a2f896f7d13346465a8a837bfa9e42d92"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test mode RX continue.  <a href="smtc__modem__test__api_8h.html#a2f896f7d13346465a8a837bfa9e42d92">More...</a><br /></td></tr>
<tr class="separator:a2f896f7d13346465a8a837bfa9e42d92"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b0044416a14398f5c92852a4eada0ce"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__test__api_8h.html#a6b0044416a14398f5c92852a4eada0ce">smtc_modem_test_get_nb_rx_packets</a> (uint32_t *nb_rx_packets)</td></tr>
<tr class="memdesc:a6b0044416a14398f5c92852a4eada0ce"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read number of received packets during test RX continue.  <a href="smtc__modem__test__api_8h.html#a6b0044416a14398f5c92852a4eada0ce">More...</a><br /></td></tr>
<tr class="separator:a6b0044416a14398f5c92852a4eada0ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a631637357b450c2920e922286f795e90"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__test__api_8h.html#a631637357b450c2920e922286f795e90">smtc_modem_test_rssi</a> (uint32_t frequency_hz, <a class="el" href="smtc__modem__test__api_8h.html#a07fe2a8ce0f3a41efc85724db499ea92">smtc_modem_test_bw_t</a> bw, uint16_t time_ms)</td></tr>
<tr class="memdesc:a631637357b450c2920e922286f795e90"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test mode RSSI.  <a href="smtc__modem__test__api_8h.html#a631637357b450c2920e922286f795e90">More...</a><br /></td></tr>
<tr class="separator:a631637357b450c2920e922286f795e90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30a2daff5dd8e6d0da460d6b74fc2d1c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__test__api_8h.html#a30a2daff5dd8e6d0da460d6b74fc2d1c">smtc_modem_test_get_rssi</a> (int8_t *rssi)</td></tr>
<tr class="memdesc:a30a2daff5dd8e6d0da460d6b74fc2d1c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get RSSI result (to be called when test rssi is finished)  <a href="smtc__modem__test__api_8h.html#a30a2daff5dd8e6d0da460d6b74fc2d1c">More...</a><br /></td></tr>
<tr class="separator:a30a2daff5dd8e6d0da460d6b74fc2d1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9030ba0ea78c2094b668a83278b18d4c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__test__api_8h.html#a9030ba0ea78c2094b668a83278b18d4c">smtc_modem_test_set_rssi</a> (int16_t rssi)</td></tr>
<tr class="memdesc:a9030ba0ea78c2094b668a83278b18d4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Test mode Set RSSI.  <a href="smtc__modem__test__api_8h.html#a9030ba0ea78c2094b668a83278b18d4c">More...</a><br /></td></tr>
<tr class="separator:a9030ba0ea78c2094b668a83278b18d4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6af75ef49c59429cc72f808e89b96f7b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__test__api_8h.html#a6af75ef49c59429cc72f808e89b96f7b">smtc_modem_test_radio_reset</a> (void)</td></tr>
<tr class="memdesc:a6af75ef49c59429cc72f808e89b96f7b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset the Radio for test purpose.  <a href="smtc__modem__test__api_8h.html#a6af75ef49c59429cc72f808e89b96f7b">More...</a><br /></td></tr>
<tr class="separator:a6af75ef49c59429cc72f808e89b96f7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01a7b96503133d131b855e6e5806ce8b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__test__api_8h.html#a01a7b96503133d131b855e6e5806ce8b">smtc_modem_test_duty_cycle_app_activate</a> (bool status)</td></tr>
<tr class="memdesc:a01a7b96503133d131b855e6e5806ce8b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable / disable the applicative dutycycle.  <a href="smtc__modem__test__api_8h.html#a01a7b96503133d131b855e6e5806ce8b">More...</a><br /></td></tr>
<tr class="separator:a01a7b96503133d131b855e6e5806ce8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3adc0d01ff62e3c9918bb8213d777de4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__test__api_8h.html#a3adc0d01ff62e3c9918bb8213d777de4">smtc_modem_test_direct_radio_write</a> (uint8_t *command, uint16_t command_length, uint8_t *data, uint16_t data_length)</td></tr>
<tr class="memdesc:a3adc0d01ff62e3c9918bb8213d777de4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Direct access to radio command write.  <a href="smtc__modem__test__api_8h.html#a3adc0d01ff62e3c9918bb8213d777de4">More...</a><br /></td></tr>
<tr class="separator:a3adc0d01ff62e3c9918bb8213d777de4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a668422895c42154dab4d21af4695c8e6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__test__api_8h.html#a668422895c42154dab4d21af4695c8e6">smtc_modem_test_direct_radio_read</a> (uint8_t *command, uint16_t command_length, uint8_t *data, uint16_t data_length)</td></tr>
<tr class="memdesc:a668422895c42154dab4d21af4695c8e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Direct access to radio command read.  <a href="smtc__modem__test__api_8h.html#a668422895c42154dab4d21af4695c8e6">More...</a><br /></td></tr>
<tr class="separator:a668422895c42154dab4d21af4695c8e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>soft modem test API description </p>
<p>Revised BSD License Copyright Semtech Corporation 2020. All rights reserved.</p>
<p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p><ul>
<li>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</li>
<li>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</li>
<li>Neither the name of the Semtech corporation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.</li>
</ul>
<p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SEMTECH CORPORATION BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. </p>
</div><h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="a63640687516a10065784f866533aaffe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a63640687516a10065784f866533aaffe">&#9670;&nbsp;</a></span>smtc_modem_test_bw_e</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="smtc__modem__test__api_8h.html#a63640687516a10065784f866533aaffe">smtc_modem_test_bw_e</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Test mode Bandwith type. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a63640687516a10065784f866533aaffeaaa38b1e867e6d9a2856b14e3fa565e38"></a>SMTC_MODEM_TEST_BW_125_KHZ&#160;</td><td class="fielddoc"><p>BW125. </p>
</td></tr>
<tr><td class="fieldname"><a id="a63640687516a10065784f866533aaffeaff3d9e9d9ae8d5c8407e9497db014b0f"></a>SMTC_MODEM_TEST_BW_250_KHZ&#160;</td><td class="fielddoc"><p>BW250. </p>
</td></tr>
<tr><td class="fieldname"><a id="a63640687516a10065784f866533aaffea7685c055bdde68f741e0aa14f2b7da22"></a>SMTC_MODEM_TEST_BW_500_KHZ&#160;</td><td class="fielddoc"><p>BW500. </p>
</td></tr>
<tr><td class="fieldname"><a id="a63640687516a10065784f866533aaffeabd7d2baba344bd579800b1cfbed7d284"></a>SMTC_MODEM_TEST_BW_200_KHZ&#160;</td><td class="fielddoc"><p>BW200. </p>
</td></tr>
<tr><td class="fieldname"><a id="a63640687516a10065784f866533aaffeac16ccd9991c395e1d987905ef14f8f95"></a>SMTC_MODEM_TEST_BW_400_KHZ&#160;</td><td class="fielddoc"><p>BW400. </p>
</td></tr>
<tr><td class="fieldname"><a id="a63640687516a10065784f866533aaffeaca524147520fe0d196077553eb67aade"></a>SMTC_MODEM_TEST_BW_800_KHZ&#160;</td><td class="fielddoc"><p>BW800. </p>
</td></tr>
<tr><td class="fieldname"><a id="a63640687516a10065784f866533aaffea22bf0fd6dd37d86811d204514880dc63"></a>SMTC_MODEM_TEST_BW_1600_KHZ&#160;</td><td class="fielddoc"><p>BW1600. </p>
</td></tr>
<tr><td class="fieldname"><a id="a63640687516a10065784f866533aaffea3b1cafa9b2b332f808bf7b9afb9df983"></a>SMTC_MODEM_TEST_BW_COUNT&#160;</td><td class="fielddoc"><p>Count. </p>
</td></tr>
</table>

</div>
</div>
<a id="a33bb498a5566193ca59d8d4885e32c44"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a33bb498a5566193ca59d8d4885e32c44">&#9670;&nbsp;</a></span>smtc_modem_test_cr_e</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="smtc__modem__test__api_8h.html#a33bb498a5566193ca59d8d4885e32c44">smtc_modem_test_cr_e</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Test mode Coding Rate type. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a33bb498a5566193ca59d8d4885e32c44a3a2b0104d2c562352f61fb1762aea4ff"></a>SMTC_MODEM_TEST_CR_4_5&#160;</td><td class="fielddoc"><p>CR 4/5. </p>
</td></tr>
<tr><td class="fieldname"><a id="a33bb498a5566193ca59d8d4885e32c44a3c6604fa6b3f96760d5328cc38e1cc3a"></a>SMTC_MODEM_TEST_CR_4_6&#160;</td><td class="fielddoc"><p>CR 4/6. </p>
</td></tr>
<tr><td class="fieldname"><a id="a33bb498a5566193ca59d8d4885e32c44aed7b25d2859541a642d6b396979e3fe9"></a>SMTC_MODEM_TEST_CR_4_7&#160;</td><td class="fielddoc"><p>CR 4/7. </p>
</td></tr>
<tr><td class="fieldname"><a id="a33bb498a5566193ca59d8d4885e32c44a1265b30c843944ed11a534b96272932c"></a>SMTC_MODEM_TEST_CR_4_8&#160;</td><td class="fielddoc"><p>CR 4/8. </p>
</td></tr>
<tr><td class="fieldname"><a id="a33bb498a5566193ca59d8d4885e32c44a0e9aa9a43941cd759a771a588b094d40"></a>SMTC_MODEM_TEST_CR_LI_4_5&#160;</td><td class="fielddoc"><p>CR 4/5 long interleaved. </p>
</td></tr>
<tr><td class="fieldname"><a id="a33bb498a5566193ca59d8d4885e32c44ab406b78fe61964e4de604633c065f938"></a>SMTC_MODEM_TEST_CR_LI_4_6&#160;</td><td class="fielddoc"><p>CR 4/6 long interleaved. </p>
</td></tr>
<tr><td class="fieldname"><a id="a33bb498a5566193ca59d8d4885e32c44a9a65b53b981532338fa6e46dbf52a5d0"></a>SMTC_MODEM_TEST_CR_LI_4_8&#160;</td><td class="fielddoc"><p>CR 4/8 long interleaved. </p>
</td></tr>
<tr><td class="fieldname"><a id="a33bb498a5566193ca59d8d4885e32c44ad76525e9f577ae563f9d5262464992b5"></a>SMTC_MODEM_TEST_CR_COUNT&#160;</td><td class="fielddoc"><p>Count. </p>
</td></tr>
</table>

</div>
</div>
<a id="aadec391c5d4a85c2e74cea5583d1e9f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aadec391c5d4a85c2e74cea5583d1e9f4">&#9670;&nbsp;</a></span>smtc_modem_test_sf_e</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="smtc__modem__test__api_8h.html#aadec391c5d4a85c2e74cea5583d1e9f4">smtc_modem_test_sf_e</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Test mode Spreading Factor type. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="aadec391c5d4a85c2e74cea5583d1e9f4a848c2b64b13898617577a6018fa1bc95"></a>SMTC_MODEM_TEST_FSK&#160;</td><td class="fielddoc"><p>FSK. </p>
</td></tr>
<tr><td class="fieldname"><a id="aadec391c5d4a85c2e74cea5583d1e9f4a7bc2863c73ba71f8abfd6b278fcf11f2"></a>SMTC_MODEM_TEST_LORA_SF5&#160;</td><td class="fielddoc"><p>SF5. </p>
</td></tr>
<tr><td class="fieldname"><a id="aadec391c5d4a85c2e74cea5583d1e9f4adb12ed9076f9abdb86db2717749a01ed"></a>SMTC_MODEM_TEST_LORA_SF6&#160;</td><td class="fielddoc"><p>SF6. </p>
</td></tr>
<tr><td class="fieldname"><a id="aadec391c5d4a85c2e74cea5583d1e9f4a5ab9dc39c3d7890a2986e28b000838a4"></a>SMTC_MODEM_TEST_LORA_SF7&#160;</td><td class="fielddoc"><p>SF7. </p>
</td></tr>
<tr><td class="fieldname"><a id="aadec391c5d4a85c2e74cea5583d1e9f4a79a04c9a91c0efadf4cd56e28caf66e6"></a>SMTC_MODEM_TEST_LORA_SF8&#160;</td><td class="fielddoc"><p>SF8. </p>
</td></tr>
<tr><td class="fieldname"><a id="aadec391c5d4a85c2e74cea5583d1e9f4ad8ec6d8a996687f13601a6b41ee18cc5"></a>SMTC_MODEM_TEST_LORA_SF9&#160;</td><td class="fielddoc"><p>SF9. </p>
</td></tr>
<tr><td class="fieldname"><a id="aadec391c5d4a85c2e74cea5583d1e9f4a7ffd13e9b708c04f7747ab85d359a848"></a>SMTC_MODEM_TEST_LORA_SF10&#160;</td><td class="fielddoc"><p>SF10. </p>
</td></tr>
<tr><td class="fieldname"><a id="aadec391c5d4a85c2e74cea5583d1e9f4a0f38aa018e2edfb8ce6269043347bb9b"></a>SMTC_MODEM_TEST_LORA_SF11&#160;</td><td class="fielddoc"><p>SF11. </p>
</td></tr>
<tr><td class="fieldname"><a id="aadec391c5d4a85c2e74cea5583d1e9f4a0c26e3f279016ea6b60175b55d8e43c5"></a>SMTC_MODEM_TEST_LORA_SF12&#160;</td><td class="fielddoc"><p>SF12. </p>
</td></tr>
<tr><td class="fieldname"><a id="aadec391c5d4a85c2e74cea5583d1e9f4a670d26981935ac23aae8cc9bf620d8cd"></a>SMTC_MODEM_TEST_LORA_SF_COUNT&#160;</td><td class="fielddoc"><p>Count. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a668422895c42154dab4d21af4695c8e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a668422895c42154dab4d21af4695c8e6">&#9670;&nbsp;</a></span>smtc_modem_test_direct_radio_read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_test_direct_radio_read </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>command</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>command_length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>data_length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Direct access to radio command read. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">command</td><td>Pointer to the buffer to be transmitted </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">command_length</td><td>Buffer size to be transmitted </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">data</td><td>Pointer to the buffer to be received </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">data_length</td><td>Buffer size to be received</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a3adc0d01ff62e3c9918bb8213d777de4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3adc0d01ff62e3c9918bb8213d777de4">&#9670;&nbsp;</a></span>smtc_modem_test_direct_radio_write()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_test_direct_radio_write </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>command</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>command_length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>data_length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Direct access to radio command write. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">command</td><td>Pointer to the buffer to be transmitted </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">command_length</td><td>Buffer size to be transmitted </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">data</td><td>Pointer to the buffer to be transmitted </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">data_length</td><td>Buffer size to be transmitted</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a01a7b96503133d131b855e6e5806ce8b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a01a7b96503133d131b855e6e5806ce8b">&#9670;&nbsp;</a></span>smtc_modem_test_duty_cycle_app_activate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_test_duty_cycle_app_activate </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>status</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enable / disable the applicative dutycycle. </p>
<dl class="section remark"><dt>Remarks</dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">status</td><td>0: disable, 1: enable</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a6b0044416a14398f5c92852a4eada0ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6b0044416a14398f5c92852a4eada0ce">&#9670;&nbsp;</a></span>smtc_modem_test_get_nb_rx_packets()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_test_get_nb_rx_packets </td>
          <td>(</td>
          <td class="paramtype">uint32_t *&#160;</td>
          <td class="paramname"><em>nb_rx_packets</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read number of received packets during test RX continue. </p>
<dl class="section remark"><dt>Remarks</dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">nb_rx_packets*</td><td>Number of received packet in Rx Continue</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a30a2daff5dd8e6d0da460d6b74fc2d1c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a30a2daff5dd8e6d0da460d6b74fc2d1c">&#9670;&nbsp;</a></span>smtc_modem_test_get_rssi()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_test_get_rssi </td>
          <td>(</td>
          <td class="paramtype">int8_t *&#160;</td>
          <td class="paramname"><em>rssi</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get RSSI result (to be called when test rssi is finished) </p>
<dl class="section remark"><dt>Remarks</dt><dd>Returns the computed RSSI.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">rssi*</td><td>rssi + 64</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a34f5ca7f29b38519cdbcf0893349ceda"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a34f5ca7f29b38519cdbcf0893349ceda">&#9670;&nbsp;</a></span>smtc_modem_test_nop()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_test_nop </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Perform no operation. This function can be used to terminate an ongoing continuous operation. </p>
<dl class="section remark"><dt>Remarks</dt><dd>Abort the radio planner task</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a6af75ef49c59429cc72f808e89b96f7b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6af75ef49c59429cc72f808e89b96f7b">&#9670;&nbsp;</a></span>smtc_modem_test_radio_reset()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_test_radio_reset </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reset the Radio for test purpose. </p>
<dl class="section remark"><dt>Remarks</dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a631637357b450c2920e922286f795e90"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a631637357b450c2920e922286f795e90">&#9670;&nbsp;</a></span>smtc_modem_test_rssi()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_test_rssi </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>frequency_hz</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="smtc__modem__test__api_8h.html#a07fe2a8ce0f3a41efc85724db499ea92">smtc_modem_test_bw_t</a>&#160;</td>
          <td class="paramname"><em>bw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>time_ms</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Test mode RSSI. </p>
<dl class="section remark"><dt>Remarks</dt><dd>Measure continuously the RSSI during a chosen time and give an average value</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">frequency_hz</td><td>Frequency in Hz </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">bw</td><td>bandwidth following smtc_modem_test_bw_t definition </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">time_ms</td><td>test duration in ms (1 rssi every 10 ms)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a2f896f7d13346465a8a837bfa9e42d92"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f896f7d13346465a8a837bfa9e42d92">&#9670;&nbsp;</a></span>smtc_modem_test_rx_continuous()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_test_rx_continuous </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>frequency_hz</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="smtc__modem__test__api_8h.html#a0904e049e2f6a4193846c8374d0526b1">smtc_modem_test_sf_t</a>&#160;</td>
          <td class="paramname"><em>sf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="smtc__modem__test__api_8h.html#a07fe2a8ce0f3a41efc85724db499ea92">smtc_modem_test_bw_t</a>&#160;</td>
          <td class="paramname"><em>bw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="smtc__modem__test__api_8h.html#a7bcf4639ccbe1985115e5ab739ac14c8">smtc_modem_test_cr_t</a>&#160;</td>
          <td class="paramname"><em>cr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Test mode RX continue. </p>
<dl class="section remark"><dt>Remarks</dt><dd>Continuously receive packets.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">frequency_hz</td><td>Frequency in Hz </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">sf</td><td>spreading factor following smtc_modem_test_sf_t definition </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">bw</td><td>spreading factor following smtc_modem_test_bw_t definition </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">cr</td><td>spreading factor following smtc_modem_test_cr_t definition</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a9030ba0ea78c2094b668a83278b18d4c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9030ba0ea78c2094b668a83278b18d4c">&#9670;&nbsp;</a></span>smtc_modem_test_set_rssi()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void smtc_modem_test_set_rssi </td>
          <td>(</td>
          <td class="paramtype">int16_t&#160;</td>
          <td class="paramname"><em>rssi</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Test mode Set RSSI. </p>
<dl class="section remark"><dt>Remarks</dt><dd>set the computed RSSI. </dd></dl>

</div>
</div>
<a id="ae4ed95342283486ae78119ec2f2b8625"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae4ed95342283486ae78119ec2f2b8625">&#9670;&nbsp;</a></span>smtc_modem_test_start()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_test_start </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Put modem in test mode. </p>
<dl class="section remark"><dt>Remarks</dt><dd>No other modem commands can be handled during modem test mode</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="abb9e8571cfc7ce7569941ef0ba242127"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abb9e8571cfc7ce7569941ef0ba242127">&#9670;&nbsp;</a></span>smtc_modem_test_stop()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_test_stop </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Exit modem test mode. </p>
<dl class="section remark"><dt>Remarks</dt><dd>Exit test mode and perform a reset of modem</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="ac697e3107ac55c3314fcac3f019a0ea0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac697e3107ac55c3314fcac3f019a0ea0">&#9670;&nbsp;</a></span>smtc_modem_test_tx()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_test_tx </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>payload</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>payload_length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>frequency_hz</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&#160;</td>
          <td class="paramname"><em>tx_power_dbm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="smtc__modem__test__api_8h.html#a0904e049e2f6a4193846c8374d0526b1">smtc_modem_test_sf_t</a>&#160;</td>
          <td class="paramname"><em>sf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="smtc__modem__test__api_8h.html#a07fe2a8ce0f3a41efc85724db499ea92">smtc_modem_test_bw_t</a>&#160;</td>
          <td class="paramname"><em>bw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="smtc__modem__test__api_8h.html#a7bcf4639ccbe1985115e5ab739ac14c8">smtc_modem_test_cr_t</a>&#160;</td>
          <td class="paramname"><em>cr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>preamble_size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>continuous_tx</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Test mode TX single or continue. </p>
<dl class="section remark"><dt>Remarks</dt><dd>Transmit a single packet or continuously transmit packets as fast as possible.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">payload*</td><td>Payload that will be sent. If NULL a randomly generated payload_length msg will be sent </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">payload_length</td><td>Length of the payload </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">frequency_hz</td><td>Frequency in Hz </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">tx_power_dbm</td><td>Power in dbm </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">sf</td><td>spreading factor following smtc_modem_test_sf_t definition </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">bw</td><td>spreading factor following smtc_modem_test_bw_t definition </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">cr</td><td>spreading factor following smtc_modem_test_cr_t definition </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">preamble_size</td><td>Size of the preamble </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">continuous_tx</td><td>false: single transmission / true: continuous transmission</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="ae56be76203131e5ea05e7836375248d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae56be76203131e5ea05e7836375248d4">&#9670;&nbsp;</a></span>smtc_modem_test_tx_cw()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_test_tx_cw </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>frequency_hz</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&#160;</td>
          <td class="paramname"><em>tx_power_dbm</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Test mode transmit a continuous wave. </p>
<dl class="section remark"><dt>Remarks</dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">frequency_hz</td><td>Frequency in Hz </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">tx_power_dbm</td><td>Power in dbm</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a2427b7dfe039254cd332fb58bd9fc1c5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2427b7dfe039254cd332fb58bd9fc1c5">&#9670;&nbsp;</a></span>smtc_modem_test_tx_hop()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_test_tx_hop </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section remark"><dt>Remarks</dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
